﻿namespace Resharper.Abstractions.Solutions
{
  using System;
  using JetBrains.Annotations;
  using JetBrains.ReSharper.Psi;

  /// <summary>Defines the <see cref="Language"/> class.</summary>
  public class Language
  {
    #region Constructors and Destructors

    /// <summary>Initializes a new instance of the <see cref="Language"/> class.</summary>
    /// <param name="language">The language.</param>
    internal Language([NotNull] PsiLanguageType language)
    {
      if (language == null)
      {
        throw new ArgumentNullException("language");
      }

      this.InternalLanguage = language;
    }

    #endregion

    #region Properties

    /// <summary>
    /// Gets the internal language.
    /// </summary>
    [NotNull]
    internal PsiLanguageType InternalLanguage { get; private set; }

    #endregion
  }
}